using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.Persistent.Base;
using TransLogger.Module.BusinessObjects;

namespace TransLogger.Module.Controllers
{
    public partial class ShowNewSingletoneWindowController : WindowController
    {
        private ShowNavigationItemController _navigationItemController;

        public ShowNewSingletoneWindowController()
        {
            InitializeComponent();
            TargetWindowType = WindowType.Main;
            RegisterActions(components);
        }

        protected override void OnFrameAssigned()
        {
            base.OnFrameAssigned();
            _navigationItemController = Frame.GetController<ShowNavigationItemController>();
            if (_navigationItemController != null)
            {
                _navigationItemController.CustomShowNavigationItem += NavigationItemControllerOnCustomShowNavigationItem;
            }

        }

        private void NavigationItemControllerOnCustomShowNavigationItem(object sender, CustomShowNavigationItemEventArgs customShowNavigationItemEventArgs)
        {
        }
    }
}
